function china(val) {
    console.log(val);
}

function say(fun,val) {
    fun(val)
}

say(china,'今日说法')

//匿名函数
say(function (val) {
    console.log(val);
},'呵呵');

var http = require("http");

http.createServer(function(request, response) {
    response.writeHead(200, {"Content-Type": "text/plain"});
    response.write("Hello World");
    response.end();
}).listen(8888);